<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 日期格式</title>
</head>
<body>
<h2>JavaScript 完整日期</h2>
<p>"Monday February 25 2015"</p>

<p>Date.parse() 返回日期和1970年1月1日之间的毫秒数：</p>

<p id="demo"></p>

<script>
  var msec = Date.parse("March 21, 2012");
  document.getElementById("demo").innerHTML = msec;
</script>
</body>
</html>

<!--
输出结果:1332259200000
-->